package file;

import java.io.File;
import java.io.FileFilter;
import java.util.List;

public class ListFilesDemo2 {
    public static void main(String[] args) {
        File file = new File(".");
        if(file.isDirectory()){
            File[] a = file.listFiles(f->f.getName().startsWith("."));
                for (File file1 : a) {
                    System.out.println(file1);
                }
            }
        }
    }

